raar.process.sensor
Class RACameraSensor
java.lang.Object
raar.process.RAProcess
raar.process.sensor.RASensor
raar.process.sensor.RARegionSensor
raar.process.sensor.RACameraSensor
- All Implemented Interfaces:
- java.io.Serializable
- public class RACameraSensor
- extends RARegionSensor
A sensor that models an object recognition device.
- See Also:
- Serialized Form
|
Method Summary |
java.lang.String |
explain()
Give a String that explains what the sensor does. |
java.awt.Shape |
getRegion(double currentX,
double currentY,
double currentA)
Give the sensor region, given that the sensor's origin is at the coördinate (x,y). |
RADataType |
giveSensorInformation(double currentX,
double currentY,
RAWorldObject[] objectsInRegion)
Give the sensor reading, given that the sensor's origin is at the coördinate (x,y)
and that the objects provided are within the sensor's region. |
java.lang.String |
toString()
String representation! |
| Methods inherited from class raar.process.sensor.RASensor |
acceptsInput, dumpRegisters, execute, get, getAgent, getColor, getDataType, getInputNames, getInputObjects, getOutputNames, getOutputObjects, getSensorValue, isSpecial, set, setAgent, setOutput, setSourceCode, suppliesOutput |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RACameraSensor
public RACameraSensor(RAAgent agent)
throws RAException
getRegion
public java.awt.Shape getRegion(double currentX,
double currentY,
double currentA)
- Give the sensor region, given that the sensor's origin is at the coördinate (x,y).
- Specified by:
getRegion in class RARegionSensor
giveSensorInformation
public RADataType giveSensorInformation(double currentX,
double currentY,
RAWorldObject[] objectsInRegion)
- Give the sensor reading, given that the sensor's origin is at the coördinate (x,y)
and that the objects provided are within the sensor's region. Always provide one and
the same type of RADataType; do not return null.
toString
public java.lang.String toString()
- String representation!
- Specified by:
toString in class RASensor
explain
public java.lang.String explain()
- Give a String that explains what the sensor does.
- Specified by:
explain in class RASensor